package com.glut.gultguy.service;

import com.glut.gultguy.To.goodsTo;
import com.glut.gultguy.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.glut.gultguy.vo.goodsVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2022-09-05
 */
public interface GoodsService extends IService<Goods> {

    List<goodsVo> getList();//获取商品列表
    int addClick(String goodsID);//添加点击数
    Map<String,Integer> upGoods(goodsTo to);//上架商品

    goodsVo getGood(String goodId);

    List<goodsVo> search(String key);

    List<goodsVo> getMyGoods(String publisherId);

    List<goodsVo> getDeal(String buyerOpenId);
}
